groundsdk 7.7.2 API
7.7.2
androidJvm
groundsdk 7.7.2 API
/
com.parrot.drone.groundsdk.value
/
DoubleRange
Double
Range
interface
DoubleRange
Range of doubles.
Members
Properties
EMPTY
Link copied to clipboard
val
EMPTY
:
DoubleRange
An empty double range.
Functions
clamp
Link copied to clipboard
open
fun
clamp
(
value
:
Double
)
:
Double
Clamps a value to this range.
contains
Link copied to clipboard
open
fun
contains
(
value
:
Double
)
:
Boolean
Tells whether this range may contain some value.
get
Lower
Link copied to clipboard
abstract
fun
getLower
(
)
:
Double
Gets lower bound.
get
Upper
Link copied to clipboard
abstract
fun
getUpper
(
)
:
Double
Gets upper bound.
of
Link copied to clipboard
@
NonNull
open
fun
of
(
lower
:
Double
,
upper
:
Double
)
:
DoubleRange
Creates an immutable
DoubleRange
.
scale
From
Link copied to clipboard
open
fun
scaleFrom
(
value
:
Double
,
@
NonNull
src
:
DoubleRange
)
:
Double
Scales a value from a given range to this range.